ocaml: eventchn: add a 'type t' to represent an event channel
authorDavid Scott <dave.scott@eu.citrix.com>
Wed, 20 Mar 2013 20:24:42 +0000 (20:24 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Apr 2013 11:03:11 +0000 (12:03 +0100)
commitdfb9738cdc8cdbdf38747edfcdcf1bae46f074f2
treef5da47fb42c7b8c359623ec98e803eb8a43ad678
parent0b1161e03753114ee149c7d65c1912fcbc3cf5df
ocaml: eventchn: add a 'type t' to represent an event channel

It's a common OCaml convention to add a 'type t' in a module to
represent the main "thing" that the module is about. We add an
opaque type t and to_int/of_int functions for those who really
need it, in particular:

  1. to_int is needed for debug logging; and
  2. both to_int and of_int are needed for anyone who communicates
     a port number through xenstore.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/ocaml/libs/eventchn/xeneventchn.ml
tools/ocaml/libs/eventchn/xeneventchn.mli
tools/ocaml/xenstored/domain.ml
tools/ocaml/xenstored/event.ml
tools/ocaml/xenstored/xenstored.ml